package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.BookInitMappingDao;
import io.wdb.modules.generator.generator.entity.BookInitMappingEntity;
import io.wdb.modules.generator.generator.service.BookInitMappingService;



@Service("bookInitMappingService")
public class BookInitMappingServiceImpl implements BookInitMappingService {
	@Autowired
	private BookInitMappingDao bookInitMappingDao;
	
	@Override
	public BookInitMappingEntity queryObject(Long id){
		return bookInitMappingDao.queryObject(id);
	}
	
	@Override
	public List<BookInitMappingEntity> queryList(Map<String, Object> map){
		return bookInitMappingDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookInitMappingDao.queryTotal(map);
	}
	
	@Override
	public void save(BookInitMappingEntity bookInitMapping){
		bookInitMappingDao.save(bookInitMapping);
	}
	
	@Override
	public void update(BookInitMappingEntity bookInitMapping){
		bookInitMappingDao.update(bookInitMapping);
	}
	
	@Override
	public void delete(Long id){
		bookInitMappingDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		bookInitMappingDao.deleteBatch(ids);
	}
	
}
